<?php 
class Blog_model extends CI_Model {
	function get_last_ten_entires(){
		$query=$this->db->get('article',10);
	   return $query->result();

	}
}


?>